Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
{
gdk_drawable_get_size (bin->offscreen_window, &width, &height);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, width, height);
{
gdk_drawable_get_size (bin->offscreen_window, &width, &height);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, width, height);
y += get_first_baseline (label_layout) - get_first_baseline (accel_layout) - allocation.y;
- gtk_cairo_paint_layout (gtk_widget_get_style (widget),
+ gtk_paint_layout (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
FALSE,
shadow_type = GTK_SHADOW_ETCHED_IN;
}
- gtk_cairo_paint_arrow (gtk_widget_get_style (widget), cr,
+ gtk_paint_arrow (gtk_widget_get_style (widget), cr,
state, shadow_type,
widget, "arrow",
effective_arrow_type, TRUE,
if (gtk_widget_has_default (widget) &&
GTK_BUTTON (widget)->relief == GTK_RELIEF_NORMAL)
{
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, "buttondefault",
x, y, width, height);
if (button->relief != GTK_RELIEF_NONE || button->depressed ||
gtk_widget_get_state(widget) == GTK_STATE_PRELIGHT)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type,
shadow_type, widget, "button",
x, y, width, height);
y += child_displacement_y;
}
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "button",
x, y, width, height);
max_month_width = priv->max_month_width;
max_year_width = priv->max_year_width;
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "calendar",
0, 0, header_width, priv->header_h);
else
state = GTK_STATE_NORMAL;
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
state, widget, "calendar-day",
day_rect.x, day_rect.y,
day_rect.width, day_rect.height);
gdk_drawable_get_size (window, &width, &height);
if (arrow == ARROW_MONTH_LEFT || arrow == ARROW_YEAR_LEFT)
- gtk_cairo_paint_arrow (style, cr, state,
+ gtk_paint_arrow (style, cr, state,
GTK_SHADOW_OUT, widget, "calendar",
GTK_ARROW_LEFT, TRUE,
width/2 - 3, height/2 - 4, 8, 8);
else
- gtk_cairo_paint_arrow (style, cr, state,
+ gtk_paint_arrow (style, cr, state,
GTK_SHADOW_OUT, widget, "calendar",
GTK_ARROW_RIGHT, TRUE,
width/2 - 4, height/2 - 4, 8, 8);
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget), GTK_SHADOW_IN,
widget, "calendar",
0, 0,
* but some engines don't paint anything with that detail for
* non-GtkProgressBar widgets.
*/
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, NULL,
clip.y = bar_position;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_SELECTED, GTK_SHADOW_OUT,
widget, "bar",
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_SELECTED,
FALSE, widget, "progressbar",
x_pos, y_pos,
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_NORMAL,
FALSE, widget, "progressbar",
x_pos, y_pos,
gdk_cairo_rectangle (cr, &clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style, cr,
+ gtk_paint_layout (style, cr,
GTK_STATE_NORMAL,
FALSE, widget, "progressbar",
x_pos, y_pos,
state = GTK_STATE_PRELIGHT;
}
- gtk_cairo_paint_spinner (gtk_widget_get_style (widget),
+ gtk_paint_spinner (gtk_widget_get_style (widget),
cr,
state,
widget,
else if (priv->wrap_width == -1)
pango_layout_set_width (layout, -1);
- gtk_cairo_paint_layout (gtk_widget_get_style (widget),
+ gtk_paint_layout (gtk_widget_get_style (widget),
cr,
state,
TRUE,
if (priv->radio)
{
- gtk_cairo_paint_option (gtk_widget_get_style (widget),
+ gtk_paint_option (gtk_widget_get_style (widget),
cr,
state, shadow,
widget, "cellradio",
}
else
{
- gtk_cairo_paint_check (gtk_widget_get_style (widget),
+ gtk_paint_check (gtk_widget_get_style (widget),
cr,
state, shadow,
widget, "cellcheck",
GtkAllocation child_allocation;
gtk_widget_get_allocation (child, &child_allocation);
- gtk_cairo_paint_focus (style, cr, state,
+ gtk_paint_focus (style, cr, state,
widget, "checkbutton",
child_allocation.x - allocation.x - focus_width - focus_pad,
child_allocation.y - allocation.y - focus_width - focus_pad,
}
else
{
- gtk_cairo_paint_focus (style, cr, state,
+ gtk_paint_focus (style, cr, state,
widget, "checkbutton",
border_width,
border_width,
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT)
{
- gtk_cairo_paint_flat_box (style, cr, GTK_STATE_PRELIGHT,
+ gtk_paint_flat_box (style, cr, GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
widget, "checkbutton",
border_width, border_width,
allocation.height - (2 * border_width));
}
- gtk_cairo_paint_check (style, cr,
+ gtk_paint_check (style, cr,
state_type, shadow_type,
widget, "checkbutton",
x, y, indicator_size, indicator_size);
if (priv->draw_as_radio)
{
- gtk_cairo_paint_option (style, cr,
+ gtk_paint_option (style, cr,
state_type, shadow_type,
widget, "option",
x, y, indicator_size, indicator_size);
}
else
{
- gtk_cairo_paint_check (style, cr,
+ gtk_paint_check (style, cr,
state_type, shadow_type,
widget, "check",
x, y, indicator_size, indicator_size);
if (priv->shadow_type != GTK_SHADOW_NONE)
{
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget),
+ gtk_paint_shadow (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "combobox",
int width = gtk_widget_get_allocated_width (widget);
int height = gtk_widget_get_allocated_height (widget);
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "dnd",
0, 0, width, height);
int width = gtk_widget_get_allocated_width (widget);
int height = gtk_widget_get_allocated_height (widget);
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget), cr,
+ gtk_paint_shadow (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "dnd",
0, 0, width, height);
state = gtk_widget_has_focus (widget) ?
GTK_STATE_ACTIVE : gtk_widget_get_state (widget);
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "entry", x, y, width, height);
width += 2 * priv->focus_width;
height += 2 * priv->focus_width;
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "entry",
0, 0, width, height);
if (!gtk_widget_get_sensitive (widget))
state = GTK_STATE_INSENSITIVE;
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
state, GTK_SHADOW_OUT,
widget, "entry-progress",
x, y,
gdk_window_get_position (entry->text_area, &x, &y);
cairo_translate (cr, x, y);
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,
widget, "entry_bg",
0, 0, width, height);
gdk_window_get_position (icon_info->window, &x, &y);
cairo_translate (cr, x, y);
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,
widget, "entry_bg",
0, 0, width, height);
{
if (gtk_widget_get_has_window (widget) &&
!gtk_widget_get_app_paintable (widget))
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
GTK_SHADOW_NONE,
area.height = MAX (area.height, expander_size + 2 * expander_spacing);
area.height += !interior_focus ? (focus_width + focus_pad) * 2 : 0;
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
gtk_expander_paint_prelight (expander, cr);
}
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
state,
widget,
height = rect.height + 2 * focus_pad;
}
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, "expander",
GtkFileChooserEntry *chooser_entry = GTK_FILE_CHOOSER_ENTRY (data);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (chooser_entry->completion_feedback_window),
+ gtk_paint_flat_box (gtk_widget_get_style (chooser_entry->completion_feedback_window),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
x2 = style->xthickness + (priv->child_allocation.width - priv->label_allocation.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD) * xalign + LABEL_SIDE_PAD;
/* If the label is completely over or under the frame we can omit the gap */
if (priv->label_yalign == 0.0 || priv->label_yalign == 1.0)
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height);
else
- gtk_cairo_paint_shadow_gap (style, cr,
+ gtk_paint_shadow_gap (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height,
x2, priv->label_allocation.width + 2 * LABEL_PAD);
}
else
- gtk_cairo_paint_shadow (style, cr,
+ gtk_paint_shadow (style, cr,
state, priv->shadow_type,
widget, "frame",
x, y, width, height);
window = gtk_widget_get_window (widget);
state = gtk_widget_get_state (widget);
- gtk_cairo_paint_shadow (style,
+ gtk_paint_shadow (style,
cr,
state,
GTK_SHADOW_ETCHED_IN,
height);
if (handle_position == GTK_POS_LEFT ||
handle_position == GTK_POS_RIGHT)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget, "handlebox",
handle_position == GTK_POS_LEFT ? allocation_width : allocation_width - DRAG_HANDLE_SIZE,
allocation_height / 2);
else
- gtk_cairo_paint_vline (style,
+ gtk_paint_vline (style,
cr,
state,
widget, "handlebox",
gdk_drawable_get_size (priv->bin_window, &width, &height);
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
priv->shadow_type,
break;
}
- gtk_cairo_paint_handle (gtk_widget_get_style (widget), cr,
+ gtk_paint_handle (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "handlebox",
rect.x, rect.y, rect.width, rect.height,
"focus-padding", &focus_pad,
NULL);
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, detail,
paint_triangle (hsv, cr);
if (gtk_widget_has_focus (widget) && priv->focus_on_ring)
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, NULL,
switch (dest_pos)
{
case GTK_ICON_VIEW_DROP_INTO:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
dest_item->width, dest_item->height);
break;
case GTK_ICON_VIEW_DROP_ABOVE:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
dest_item->width, 2);
break;
case GTK_ICON_VIEW_DROP_LEFT:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
2, dest_item->height);
break;
case GTK_ICON_VIEW_DROP_BELOW:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
dest_item->width, 2);
break;
case GTK_ICON_VIEW_DROP_RIGHT:
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
state,
widget,
if (item->selected)
{
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
GTK_STATE_SELECTED,
GTK_SHADOW_NONE,
if (i == icon_view->priv->cursor_cell)
{
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
GTK_STATE_NORMAL,
widget,
* around the whole item.
*/
if (icon_view->priv->cursor_cell < 0)
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
GTK_STATE_NORMAL,
widget,
detail = type_detail[priv->message_type];
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
x -= allocation.x;
y -= allocation.y;
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
1);
cairo_region_get_extents (clip, &rect);
- gtk_cairo_paint_focus (style, cr, gtk_widget_get_state (widget),
+ gtk_paint_focus (style, cr, gtk_widget_get_state (widget),
widget, "label",
rect.x, rect.y, rect.width, rect.height);
gtk_widget_style_get (widget, "arrow-scaling", &arrow_scaling, NULL);
arrow_size = arrow_scaling * arrow_space;
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
if (menu->upper_arrow_visible && !menu->tearoff_active)
{
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
priv->upper_arrow_state,
GTK_SHADOW_OUT,
upper.width,
upper.height);
- gtk_cairo_paint_arrow (style,
+ gtk_paint_arrow (style,
cr,
priv->upper_arrow_state,
GTK_SHADOW_OUT,
if (menu->lower_arrow_visible && !menu->tearoff_active)
{
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
priv->lower_arrow_state,
GTK_SHADOW_OUT,
lower.width,
lower.height);
- gtk_cairo_paint_arrow (style,
+ gtk_paint_arrow (style,
cr,
priv->lower_arrow_state,
GTK_SHADOW_OUT,
y -= arrow_border.top;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
border = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
get_shadow_type (GTK_MENU_BAR (widget)),
gtk_widget_style_get (widget,
"selected-shadow-type", &selected_shadow_type,
NULL);
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT,
selected_shadow_type,
arrow_y = y + (h - arrow_size) / 2;
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget, "menuitem",
arrow_type, TRUE,
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
horizontal_padding + style->xthickness,
width - 2 * (horizontal_padding + style->xthickness),
separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
GTK_STATE_NORMAL, widget, "menuitem",
horizontal_padding + style->xthickness,
width - horizontal_padding - style->xthickness - 1,
&requisition, NULL);
gap_pos = get_tab_gap_pos (GTK_NOTEBOOK (notebook));
- gtk_cairo_paint_extension (gtk_widget_get_style (notebook),
+ gtk_paint_extension (gtk_widget_get_style (notebook),
cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "tab",
if (priv->show_border && (!priv->show_tabs || !priv->children))
{
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "notebook",
x, y, width, height);
break;
}
}
- gtk_cairo_paint_box_gap (gtk_widget_get_style (widget), cr,
+ gtk_paint_box_gap (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget, "notebook",
x, y, width, height,
else
state_type = GTK_STATE_ACTIVE;
- gtk_cairo_paint_extension (gtk_widget_get_style (widget), cr,
+ gtk_paint_extension (gtk_widget_get_style (widget), cr,
state_type, GTK_SHADOW_OUT,
widget, "tab",
page->allocation.x,
gtk_widget_get_allocation (page->tab_label, &allocation);
gtk_widget_style_get (widget, "focus-line-width", &focus_width, NULL);
- gtk_cairo_paint_focus (gtk_widget_get_style (widget), cr,
+ gtk_paint_focus (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget), widget, "tab",
allocation.x - focus_width,
allocation.y - focus_width,
arrow_size = scroll_arrow_hlength;
}
- gtk_cairo_paint_arrow (gtk_widget_get_style (widget),
+ gtk_paint_arrow (gtk_widget_get_style (widget),
cr, state_type,
shadow_type, widget, "notebook",
arrow, TRUE, arrow_rect.x, arrow_rect.y,
else
state = gtk_widget_get_state (widget);
- gtk_cairo_paint_handle (gtk_widget_get_style (widget),
+ gtk_paint_handle (gtk_widget_get_style (widget),
cr,
state, GTK_SHADOW_NONE,
widget, "paned",
area.width = width - 2 * style->xthickness;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT, GTK_SHADOW_OUT,
widget, "bar",
area.y = height - amount - area.y;
}
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT, GTK_SHADOW_OUT,
widget, "bar",
cairo_save (cr);
gdk_cairo_rectangle (cr, &start_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_NORMAL,
FALSE,
cairo_save (cr);
gdk_cairo_rectangle (cr, &end_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_NORMAL,
FALSE,
cairo_save (cr);
gdk_cairo_rectangle (cr, &prelight_clip);
cairo_clip (cr);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
GTK_STATE_PRELIGHT,
FALSE,
width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_height (widget);
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_NORMAL, GTK_SHADOW_IN,
widget, "trough",
if (gtk_widget_get_state (widget) == GTK_STATE_PRELIGHT)
{
- gtk_cairo_paint_flat_box (style, cr,
+ gtk_paint_flat_box (style, cr,
GTK_STATE_PRELIGHT,
GTK_SHADOW_ETCHED_OUT,
widget, "checkbutton",
allocation.height - (2 * border_width));
}
- gtk_cairo_paint_option (style, cr,
+ gtk_paint_option (style, cr,
state_type, shadow_type,
widget, "radiobutton",
x, y, indicator_size, indicator_size);
style = gtk_widget_get_style (widget);
window = gtk_widget_get_window (widget);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type, shadow_type,
widget,
gtk_range_get_stepper_detail (range, stepper),
arrow_y += arrow_displacement_y;
}
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget,
gtk_range_get_stepper_detail (range, stepper),
priv->slider.height / 2 -
y);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_IN,
GTK_WIDGET (range),
else
trough_change_pos_x = 0;
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_IN,
GTK_WIDGET (range),
else
fill_detail = "trough-fill-level";
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
sensitive ? GTK_STATE_ACTIVE : GTK_STATE_INSENSITIVE,
GTK_SHADOW_OUT,
GTK_WIDGET (range), fill_detail,
}
if (sensitive && gtk_widget_has_focus (widget))
- gtk_cairo_paint_focus (style, cr,
+ gtk_paint_focus (style, cr,
gtk_widget_get_state (widget),
widget, "trough",
priv->range_rect.x,
cairo_clip (cr);
{
- gtk_cairo_paint_slider (style,
+ gtk_paint_slider (style,
cr,
state,
shadow_type,
gdk_cairo_set_source_color (cr, &style->fg[gtk_widget_get_state (widget)]);
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
widget,
priv->orientation == GTK_ORIENTATION_HORIZONTAL ?
pango_layout_set_text (layout, unit_str, -1);
pango_layout_get_extents (layout, &logical_rect, NULL);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
pango_layout_set_text (layout, unit_str + j, 1);
pango_layout_get_extents (layout, NULL, &logical_rect);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
gtk_widget_get_state (widget),
FALSE,
max_pos = find_next_pos (widget, m, marks + i, GTK_POS_TOP, 0) - min_sep;
}
- gtk_cairo_paint_vline (style, cr, state_type,
+ gtk_paint_vline (style, cr, state_type,
widget, "scale-mark", y1, y2, x1);
if (mark->markup)
min_pos_after = x3 + logical_rect.width + min_sep;
}
- gtk_cairo_paint_layout (style, cr, state_type,
+ gtk_paint_layout (style, cr, state_type,
FALSE, widget, "scale-mark",
x3, y3, layout);
}
}
y1 = marks[i];
- gtk_cairo_paint_hline (style, cr, state_type,
+ gtk_paint_hline (style, cr, state_type,
widget, "range-mark", x1, x2, y1);
if (mark->markup)
min_pos_after = y3 + logical_rect.height + min_sep;
}
- gtk_cairo_paint_layout (style, cr, state_type,
+ gtk_paint_layout (style, cr, state_type,
FALSE, widget, "scale-mark",
x3, y3, layout);
}
gtk_scale_get_layout_offsets (scale, &x, &y);
gtk_widget_get_allocation (widget, &allocation);
- gtk_cairo_paint_layout (style,
+ gtk_paint_layout (style,
cr,
state_type,
FALSE,
relative_allocation.height = gtk_widget_get_allocated_height (widget) - 2 * border_width;
}
- gtk_cairo_paint_shadow (style,
+ gtk_paint_shadow (style,
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "scrolled_window",
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
{
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
0, (height - separator_height) / 2,
width, separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
gtk_widget_get_state (widget),
widget, "hseparator",
0, width - 1,
else
{
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
gtk_widget_get_state (widget), GTK_SHADOW_ETCHED_OUT,
widget, "vseparator",
(width - separator_width) / 2, 0,
separator_width, height);
else
- gtk_cairo_paint_vline (style, cr,
+ gtk_paint_vline (style, cr,
gtk_widget_get_state (widget),
widget, "vseparator",
0, height - 1,
gdk_drawable_get_size (priv->panel, &width, &height);
- gtk_cairo_paint_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_box (gtk_widget_get_style (widget), cr,
state, shadow_type,
widget, "spinbutton",
0, 0, width, height);
}
}
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state_type, shadow_type,
widget,
(arrow_type == GTK_ARROW_UP)? "spinbutton_up" : "spinbutton_down",
height = h;
width = w;
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state_type, shadow_type,
widget, "spinbutton",
arrow_type, TRUE,
if (!gtk_widget_is_sensitive (widget))
state_type = GTK_STATE_INSENSITIVE;
- gtk_cairo_paint_spinner (gtk_widget_get_style (widget),
+ gtk_paint_spinner (gtk_widget_get_style (widget),
cr,
state_type,
widget,
get_grip_rect (statusbar, FALSE, &rect);
style = gtk_widget_get_style (widget);
- gtk_cairo_paint_resize_grip (style,
+ gtk_paint_resize_grip (style,
cr,
gtk_widget_get_state (widget),
widget,
return;
}
- gtk_cairo_paint_shadow (style, cr, state_type, shadow_type, widget, detail,
+ gtk_paint_shadow (style, cr, state_type, shadow_type, widget, detail,
x, y, width, height);
if (detail && strcmp (detail, "optionmenu") == 0)
else
vline_x = x + width - (indicator_size.width + indicator_spacing.left + indicator_spacing.right) - style->xthickness;
- gtk_cairo_paint_vline (style, cr, state_type, widget,
+ gtk_paint_vline (style, cr, state_type, widget,
detail,
y + style->ythickness + 1,
y + height - style->ythickness - 3,
gint height,
GtkOrientation orientation)
{
- gtk_cairo_paint_box (style, cr, state_type, shadow_type,
+ gtk_paint_box (style, cr, state_type, shadow_type,
widget, detail, x, y, width, height);
if (detail &&
strcmp ("vscale", detail) == 0))
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
- gtk_cairo_paint_vline (style, cr, state_type, widget, detail,
+ gtk_paint_vline (style, cr, state_type, widget, detail,
y + style->ythickness,
y + height - style->ythickness - 1, x + width / 2);
else
- gtk_cairo_paint_hline (style, cr, state_type, widget, detail,
+ gtk_paint_hline (style, cr, state_type, widget, detail,
x + style->xthickness,
x + width - style->xthickness - 1, y + height / 2);
}
gint xthick, ythick;
GdkColor light, dark;
- gtk_cairo_paint_box (style, cr, state_type, shadow_type, widget,
+ gtk_paint_box (style, cr, state_type, shadow_type, widget,
detail, x, y, width, height);
if (detail && !strcmp (detail, "paned"))
/**
- * gtk_cairo_paint_hline:
+ * gtk_paint_hline:
* @style: a #GtkStyle
* @cr: a #caio_t
* @state_type: a state
* using the given style and state.
**/
void
-gtk_cairo_paint_hline (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x1,
- gint x2,
- gint y)
+gtk_paint_hline (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x1,
+ gint x2,
+ gint y)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
}
/**
- * gtk_cairo_paint_vline:
+ * gtk_paint_vline:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* using the given style and state.
*/
void
-gtk_cairo_paint_vline (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint y1_,
- gint y2_,
- gint x)
+gtk_paint_vline (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint y1_,
+ gint y2_,
+ gint x)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
}
/**
- * gtk_cairo_paint_shadow:
+ * gtk_paint_shadow:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* using the given style and state and shadow type.
*/
void
-gtk_cairo_paint_shadow (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_shadow (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow != NULL);
}
/**
- * gtk_cairo_paint_arrow:
+ * gtk_paint_arrow:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* parameters. @arrow_type determines the direction of the arrow.
*/
void
-gtk_cairo_paint_arrow (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- GtkArrowType arrow_type,
- gboolean fill,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_arrow (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ GtkArrowType arrow_type,
+ gboolean fill,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_arrow != NULL);
}
/**
- * gtk_cairo_paint_diamond:
+ * gtk_paint_diamond:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* parameters.
*/
void
-gtk_cairo_paint_diamond (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_diamond (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_diamond != NULL);
}
/**
- * gtk_cairo_paint_box:
+ * gtk_paint_box:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws a box on @cr with the given parameters.
*/
void
-gtk_cairo_paint_box (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_box (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box != NULL);
}
/**
- * gtk_cairo_paint_flat_box:
+ * gtk_paint_flat_box:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws a flat box on @cr with the given parameters.
*/
void
-gtk_cairo_paint_flat_box (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_flat_box (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_flat_box != NULL);
}
/**
- * gtk_cairo_paint_check:
+ * gtk_paint_check:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* the given parameters.
*/
void
-gtk_cairo_paint_check (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_check (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_check != NULL);
}
/**
- * gtk_cairo_paint_option:
+ * gtk_paint_option:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* the given parameters.
*/
void
-gtk_cairo_paint_option (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_option (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_option != NULL);
}
/**
- * gtk_cairo_paint_tab:
+ * gtk_paint_tab:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* in the given rectangle on @cr using the given parameters.
*/
void
-gtk_cairo_paint_tab (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_tab (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_tab != NULL);
}
/**
- * gtk_cairo_paint_shadow_gap:
+ * gtk_paint_shadow_gap:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* gap in one side.
*/
void
-gtk_cairo_paint_shadow_gap (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side,
- gint gap_x,
- gint gap_width)
+gtk_paint_shadow_gap (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_shadow_gap != NULL);
}
/**
- * gtk_cairo_paint_box_gap:
+ * gtk_paint_box_gap:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* leaving a gap in one side.
*/
void
-gtk_cairo_paint_box_gap (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side,
- gint gap_x,
- gint gap_width)
+gtk_paint_box_gap (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side,
+ gint gap_x,
+ gint gap_width)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_box_gap != NULL);
}
/**
- * gtk_cairo_paint_extension:
+ * gtk_paint_extension:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws an extension, i.e. a notebook tab.
**/
void
-gtk_cairo_paint_extension (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkPositionType gap_side)
+gtk_paint_extension (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkPositionType gap_side)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_extension != NULL);
}
/**
- * gtk_cairo_paint_focus:
+ * gtk_paint_focus:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* given style.
*/
void
-gtk_cairo_paint_focus (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_focus (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_focus != NULL);
}
/**
- * gtk_cairo_paint_slider:
+ * gtk_paint_slider:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* given style and orientation.
**/
void
-gtk_cairo_paint_slider (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkOrientation orientation)
+gtk_paint_slider (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_slider != NULL);
}
/**
- * gtk_cairo_paint_handle:
+ * gtk_paint_handle:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws a handle as used in #GtkHandleBox and #GtkPaned.
**/
void
-gtk_cairo_paint_handle (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkShadowType shadow_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- gint width,
- gint height,
- GtkOrientation orientation)
+gtk_paint_handle (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkShadowType shadow_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ GtkOrientation orientation)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_handle != NULL);
}
/**
- * gtk_cairo_paint_expander:
+ * gtk_paint_expander:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* expanded position.
**/
void
-gtk_cairo_paint_expander (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- GtkExpanderStyle expander_style)
+gtk_paint_expander (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ GtkExpanderStyle expander_style)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_expander != NULL);
}
/**
- * gtk_cairo_paint_layout:
+ * gtk_paint_layout:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws a layout on @cr using the given parameters.
**/
void
-gtk_cairo_paint_layout (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- gboolean use_text,
- GtkWidget *widget,
- const gchar *detail,
- gint x,
- gint y,
- PangoLayout *layout)
+gtk_paint_layout (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ gboolean use_text,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ PangoLayout *layout)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_layout != NULL);
}
/**
- * gtk_cairo_paint_resize_grip:
+ * gtk_paint_resize_grip:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* parameters.
*/
void
-gtk_cairo_paint_resize_grip (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- GdkWindowEdge edge,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_resize_grip (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ GdkWindowEdge edge,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (GTK_STYLE_GET_CLASS (style)->draw_resize_grip != NULL);
}
/**
- * gtk_cairo_paint_spinner:
+ * gtk_paint_spinner:
* @style: a #GtkStyle
* @cr: a #cairo_t
* @state_type: a state
* Draws a spinner on @window using the given parameters.
*/
void
-gtk_cairo_paint_spinner (GtkStyle *style,
- cairo_t *cr,
- GtkStateType state_type,
- GtkWidget *widget,
- const gchar *detail,
- guint step,
- gint x,
- gint y,
- gint width,
- gint height)
+gtk_paint_spinner (GtkStyle *style,
+ cairo_t *cr,
+ GtkStateType state_type,
+ GtkWidget *widget,
+ const gchar *detail,
+ guint step,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
{
g_return_if_fail (GTK_IS_STYLE (style));
g_return_if_fail (cr != NULL);
GtkWidget *widget,
const gchar *detail);
-void gtk_cairo_paint_hline (GtkStyle *style,
+void gtk_paint_hline (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gint x1,
gint x2,
gint y);
-void gtk_cairo_paint_vline (GtkStyle *style,
+void gtk_paint_vline (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gint y1_,
gint y2_,
gint x);
-void gtk_cairo_paint_shadow (GtkStyle *style,
+void gtk_paint_shadow (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_arrow (GtkStyle *style,
+void gtk_paint_arrow (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_diamond (GtkStyle *style,
+void gtk_paint_diamond (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_box (GtkStyle *style,
+void gtk_paint_box (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_flat_box (GtkStyle *style,
+void gtk_paint_flat_box (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_check (GtkStyle *style,
+void gtk_paint_check (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_option (GtkStyle *style,
+void gtk_paint_option (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_tab (GtkStyle *style,
+void gtk_paint_tab (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_shadow_gap (GtkStyle *style,
+void gtk_paint_shadow_gap (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
GtkPositionType gap_side,
gint gap_x,
gint gap_width);
-void gtk_cairo_paint_box_gap (GtkStyle *style,
+void gtk_paint_box_gap (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
GtkPositionType gap_side,
gint gap_x,
gint gap_width);
-void gtk_cairo_paint_extension (GtkStyle *style,
+void gtk_paint_extension (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint width,
gint height,
GtkPositionType gap_side);
-void gtk_cairo_paint_focus (GtkStyle *style,
+void gtk_paint_focus (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_slider (GtkStyle *style,
+void gtk_paint_slider (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint width,
gint height,
GtkOrientation orientation);
-void gtk_cairo_paint_handle (GtkStyle *style,
+void gtk_paint_handle (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkShadowType shadow_type,
gint width,
gint height,
GtkOrientation orientation);
-void gtk_cairo_paint_expander (GtkStyle *style,
+void gtk_paint_expander (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gint x,
gint y,
GtkExpanderStyle expander_style);
-void gtk_cairo_paint_layout (GtkStyle *style,
+void gtk_paint_layout (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
gboolean use_text,
gint x,
gint y,
PangoLayout *layout);
-void gtk_cairo_paint_resize_grip (GtkStyle *style,
+void gtk_paint_resize_grip (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gint y,
gint width,
gint height);
-void gtk_cairo_paint_spinner (GtkStyle *style,
+void gtk_paint_spinner (GtkStyle *style,
cairo_t *cr,
GtkStateType state_type,
GtkWidget *widget,
gtk_widget_style_get (widget,
"selected-shadow-type", &selected_shadow_type,
NULL);
- gtk_cairo_paint_box (style,
+ gtk_paint_box (style,
cr,
GTK_STATE_PRELIGHT,
selected_shadow_type,
}
- gtk_cairo_paint_arrow (style, cr,
+ gtk_paint_arrow (style, cr,
state, shadow_type,
widget, "tearoffmenuitem",
arrow_type, FALSE,
x2 = MAX (right_max - x - TEAR_LENGTH, 0);
}
- gtk_cairo_paint_hline (style, cr, GTK_STATE_NORMAL,
+ gtk_paint_hline (style, cr, GTK_STATE_NORMAL,
widget, "tearoffmenuitem",
x1, x2, y + (height - style->ythickness) / 2);
x += 2 * TEAR_LENGTH;
if (gtk_widget_has_focus (widget) && !interior_focus)
{
- gtk_cairo_paint_focus (gtk_widget_get_style (widget), cr,
+ gtk_paint_focus (gtk_widget_get_style (widget), cr,
gtk_widget_get_state (widget),
widget, "textview",
0, 0,
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_box (gtk_widget_get_style (widget),
+ gtk_paint_box (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
get_shadow_type (toolbar),
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state, GTK_SHADOW_ETCHED_OUT,
widget, "vseparator",
(width - separator_width) / 2,
separator_width,
height * (end_fraction - start_fraction));
else
- gtk_cairo_paint_vline (style, cr,
+ gtk_paint_vline (style, cr,
state, widget,
"toolbar",
height * start_fraction,
NULL);
if (wide_separators)
- gtk_cairo_paint_box (style, cr,
+ gtk_paint_box (style, cr,
state, GTK_SHADOW_ETCHED_OUT,
widget, "hseparator",
width * start_fraction,
width * (end_fraction - start_fraction),
separator_height);
else
- gtk_cairo_paint_hline (style, cr,
+ gtk_paint_hline (style, cr,
state, widget,
"toolbar",
width * start_fraction,
expander_style = GTK_EXPANDER_EXPANDED - expander_style;
}
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (priv->header),
GTK_WIDGET (group),
gtk_tooltip_paint_window (GtkTooltip *tooltip,
cairo_t *cr)
{
- gtk_cairo_paint_flat_box (gtk_widget_get_style (tooltip->window),
+ gtk_paint_flat_box (gtk_widget_get_style (tooltip->window),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
{
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget, "tray_icon",
h -= 2;
if (w > 0 && h > 0)
- gtk_cairo_paint_focus (gtk_widget_get_style (widget),
+ gtk_paint_focus (gtk_widget_get_style (widget),
cr,
gtk_widget_get_state (widget),
widget,
if (tree_view->priv->height < bin_window_height)
{
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
gtk_widget_get_state (widget),
GTK_SHADOW_NONE,
else
g_snprintf (new_detail, 127, "%s_middle", detail);
- gtk_cairo_paint_flat_box (style,
+ gtk_paint_flat_box (style,
cr,
state,
GTK_SHADOW_NONE,
expander_cell_width = cell_area.width;
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget,
else
{
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
state,
widget,
gdk_drawable_get_size (tree_view->priv->bin_window,
&width, NULL);
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
gtk_widget_get_state (widget),
widget,
tmp_height = ROW_HEIGHT (tree_view, BACKGROUND_HEIGHT (node));
}
- gtk_cairo_paint_focus (style,
+ gtk_paint_focus (style,
cr,
focus_rect_state,
widget,
else
expander_style = GTK_EXPANDER_COLLAPSED;
- gtk_cairo_paint_expander (gtk_widget_get_style (widget),
+ gtk_paint_expander (gtk_widget_get_style (widget),
cr,
state,
widget,
if (gtk_tree_view_column_cell_is_visible (column))
{
if (is_separator)
- gtk_cairo_paint_hline (style,
+ gtk_paint_hline (style,
cr,
GTK_STATE_NORMAL,
widget,
cell_state = flags & GTK_CELL_RENDERER_SELECTED ? GTK_STATE_SELECTED :
(flags & GTK_CELL_RENDERER_PRELIT ? GTK_STATE_PRELIGHT :
(flags & GTK_CELL_RENDERER_INSENSITIVE ? GTK_STATE_INSENSITIVE : GTK_STATE_NORMAL));
- gtk_cairo_paint_focus (gtk_widget_get_style (tree_column->tree_view),
+ gtk_paint_focus (gtk_widget_get_style (tree_column->tree_view),
cr,
cell_state,
tree_column->tree_view,
{
gdk_drawable_get_size (gtk_widget_get_window (widget),
&w, &h);
- gtk_cairo_paint_shadow (gtk_widget_get_style (widget),
+ gtk_paint_shadow (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL, priv->shadow_type,
widget, "viewport",
{
gdk_window_get_position (priv->bin_window, &x, &y);
gdk_drawable_get_size (priv->bin_window, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "viewportbin",
x, y, w, h);
cairo_t *cr)
{
if (!gtk_widget_get_app_paintable (widget))
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget),
+ gtk_paint_flat_box (gtk_widget_get_style (widget),
cr,
GTK_STATE_NORMAL,
GTK_SHADOW_NONE, widget, "base",
gint w, h;
gdk_drawable_get_size (offscreen_box->offscreen_window1, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, w, h);
gint w, h;
gdk_drawable_get_size (offscreen_box->offscreen_window2, &w, &h);
- gtk_cairo_paint_flat_box (gtk_widget_get_style (widget), cr,
+ gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
0, 0, w, h);
static gboolean
grippy_draw (GtkWidget *area, cairo_t *cr, GdkWindowEdge edge)
{
- gtk_cairo_paint_resize_grip (gtk_widget_get_style (area),
+ gtk_paint_resize_grip (gtk_widget_get_style (area),
cr,
gtk_widget_get_state (area),
area,